<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@	page import="java.util.ArrayList"%>
<%@	page import="kau.dao.*"%>
<%@	page import="kau.vo.*"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>클래스 조회/수정</title>
<style type="text/css">
<!--
@import url("css/style.css");
-->
</style>
<script type="text/javascript">
	function courseDelete() {

		if (confirm("정말로 삭제하시겠습니까? 강좌의 모든 정보들은 사라집니다")) {
			return true;
		} else
			return false;
	}
</script>


<style type="text/css">
#info {
	font-family: 맑은 고딕, dotum, sans-serif, bold;
	font-size: 13px
}
</style>


</head>

<body>

	<form class="form-horizontal" method="post"
		action="getAllCourse.course">
		<div id="info">
			<br>
			<table align="left" style="margin-left: 20px">
				<tr>

					<td width="60" height="50"><img
						src="/nems/admin/images/course.png" width="40"
						/></td>

					<td>
						<h4
							style="font-weight: bold; color: #005700; text-align: left; font-size: 20px;">클래스
							조회/수정</h4>
					</td>
				</tr>
			</table>

		</div>
		<br>
		<br>
		<center>
		<table id="newspaper-a" style="width: 750px" >
			<thead>

				<tr align="center">

					<th scope="col" width="21%">클래스명
					</th>
					<th scope="col" width="15%">강사명
					</th>
					<th scope="col" width="15%">시작일
					</th>
					<th scope="col" width="15%">종료일
					</th>
					<th scope="col" width="12%">시작시간
					</th>
					<th scope="col" width="12%">종료시간
					</th>
					<th scope="col" width="10%">삭제
					</th>
				</tr>
			</thead>
			<tbody>

				<c:forEach items="${requestScope.courseList}" var="course"
					varStatus="status">
					<tr align="center">
						<td><a
							href="courseUpdateView.course?courseId=${course.courseId}"
							style="text-decoration: none;"><font
								style="font-weight: bold; color: black;">${course.courseName}</font></a>
						</td>
						<td>${course.lecturer}</td>
						<td>${course.startDate}</td>
						<td>${course.endDate}</td>
						<td>${course.startTime}</td>
						<td>${course.endTime}</td>
						<td><a href="delete.course?courseId=${course.courseId}"
							onclick="return courseDelete()" style="text-decoration: none;"><font
								style="font-weight: bold; color: red;">삭제</font></a></td>
					</tr>

				</c:forEach>

			</tbody>
		</table>

</center>
	</form>
	<br>
	<center>
		<a href="javascript:history.go(-1)" class="css_btn_class">이전화면으로</a>
	</center>


</body>

</html>